<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s"  uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'MyTickets.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
<table align="center" width="100%" border="1">
<center><font size="8">我的机票</font></center>
  <table width="100%" border="1">
  <tr><td width="25%">航班id</td><td width="25%">乘机人</td><td width="25%">起飞日期</td><td width="25%">操作</td></tr>
  <s:iterator value="tlist" id="tlist" status="st">
  <tr>
  <td colspan="8">
	<table width="100%" border="1">
	<tr><td width="25%">${flightId }</td><td width="25%">${hname }</td><td width="25%">${date }</td><td><s:if test="%{#tlist.status == 2}"><a href="ticketaction!returnticket.action?sid=${soldId }">退票</a></s:if><s:if test="%{#tlist.status == 1}"><a href="ticketaction!payt.action?sid=${soldId }">付款</a></s:if><s:if test="%{#tlist.status == 3}">已出票</s:if><s:if test="%{#tlist.status == 4}"><a href="ticketaction!cancelreturn.action?sid=${soldId }">取消退票</a></s:if><s:if test="%{#tlist.status == 0}">已退票</s:if></td></tr>
	</table>
  </td>
  </tr>
  </s:iterator>
  </table>
</table>
  </body>
</html>
